package com.example.service.statistics.impl;
/*
 *  @ClassName:ProductBuyNumberServiceImpl
 *  @Author:WZ
 *  @DateTime:2023/1/31/11:48
 *  商品统计 -- 商品购买次数
 */

import com.example.dao.statistics.ProductBuyNumberDao;
import com.example.pojo.Product;
import com.example.service.statistics.ProductBuyNumberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ProductBuyNumberServiceImpl implements ProductBuyNumberService {
    @Autowired
    private ProductBuyNumberDao productBuyNumberDao;

    @Override
    public List<Product> getProductBuyNumberZj7t() {
        return productBuyNumberDao.getProductBuyNumberZj7t();
    }

    @Override
    public List<Product> getProductBuyNumberZj30t() {
        return productBuyNumberDao.getProductBuyNumberZj30t();
    }

    @Override
    public List<Product> getProductBuyNumberZj90t() {
        return productBuyNumberDao.getProductBuyNumberZj90t();
    }

    @Override
    public List<Product> getProductBuyNumber() {
        return productBuyNumberDao.getProductBuyNumber();
    }

    @Override
    public List<Product> getProductBuyNumberLike(String s1, String s2) {
        return productBuyNumberDao.getProductBuyNumberLike(s1,s2);
    }
}
